﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Interfaces;
using Presenters;

namespace Views
{
    public partial class clientAddParent : Form, IClientAddParent
    {
        ClientAddParentPresenter presenter = null;

        public clientAddParent()
        {
            InitializeComponent();
            presenter = new ClientAddParentPresenter(this);
            presenter.ClientAddDisplay(new clientAddView());
        }

        void IClientAddParent.Close()
        {
            this.Close();
        }

        void IClientAddParent.AddToPanel(UserControl view)
        {
            panel.Controls.Add(view);
        }

        Form IClientAddParent.ReturnView()
        {
            return this;
        }

        private void toolStripLabel1_Click(object sender, EventArgs e)
        {
            presenter.ExitApp();
        }
    }
}
